package com.gopay.common.domain.cert;

import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.gopay.common.domain.BaseEntity;

/** 
 * @ClassName: CertCustPolicyEntity 
 * @Description: 与数据库中数字证书配置策略表对应的实体类
 * @author PanShiChao 
 * @date 2016年9月5日 下午2:54:10  
 */
@Entity
@Table(name="CERT_CUST_POLICY")
public class CertCustPolicyEntity extends BaseEntity {

    private static final long serialVersionUID = -5545256426894472763L;
    /**数据证书关联客户ID**/
    private String custId;
    /**数据证书总素**/
    private Integer freeTotalCount;
    /**已使用数字证书个数**/
    private Integer usedCount;
    /**未使用数字证书个数**/
    private Integer unUsedCount;
    /**已过期的数字证书个数**/
    private Integer expiredCount;
    /**数字证书有效期**/
    private Integer expiredDays;
    /**配置策略创建时间**/
    private Date createTs;
    /**配置策略操作员ID**/
    private String createOperID;
    /**审核员ID**/
    private String auditOperID;
    /**配置策略审核状态 00 表示审核中 01 表示审核通过 02 表示未通过**/
    private String auditStat;
    /**配置策略审核日期**/
    private Date auditTs;
    /**配置测落审核原因**/
    private String auditReson;
    /**配置策略类型 00 表示通用 01 表示个性化**/
    private String policyTpye;
    /**配置策略版本**/
    private String lockVersion;
    
    @Id
    @Column(name = "CUST_ID", insertable = true, updatable = true, nullable = false)
    public String getCustId() {
        return custId;
    }
    public void setCustId(String custId) {
        this.custId = custId;
    }
    @Basic
    @Column(name = "FREE_TOTAL_COUNT")
    public Integer getFreeTotalCount() {
        return freeTotalCount;
    }
    public void setFreeTotalCount(Integer freeTotalCount) {
        this.freeTotalCount = freeTotalCount;
    }
    @Basic
    @Column(name = "USED_COUNT")
    public Integer getUsedCount() {
        return usedCount;
    }
    public void setUsedCount(Integer usedCount) {
        this.usedCount = usedCount;
    }
    @Basic
    @Column(name = "UNUSED_COUNT")
    public Integer getUnUsedCount() {
        return unUsedCount;
    }
    public void setUnUsedCount(Integer unUsedCount) {
        this.unUsedCount = unUsedCount;
    }
    @Basic
    @Column(name = "EXPIRED_COUNT")
    public Integer getExpiredCount() {
        return expiredCount;
    }
    public void setExpiredCount(Integer expiredCount) {
        this.expiredCount = expiredCount;
    }
    @Basic
    @Column(name = "EXPIRY_DAY")
    public Integer getExpiredDays() {
        return expiredDays;
    }
    public void setExpiredDays(Integer expiredDays) {
        this.expiredDays = expiredDays;
    }
    @Basic
    @Column(name = "CREATE_TS",length=200)
    @Temporal(TemporalType.TIMESTAMP)
    public Date getCreateTs() {
        return createTs;
    }
    public void setCreateTs(Date createTs) {
        this.createTs = createTs;
    }
    @Basic
    @Column(name = "CREATE_OPER_ID")
    public String getCreateOperID() {
        return createOperID;
    }
    public void setCreateOperID(String createOperID) {
        this.createOperID = createOperID;
    }
    @Basic
    @Column(name = "AUDIT_OPER_ID")
    public String getAuditOperID() {
        return auditOperID;
    }
    public void setAuditOperID(String auditOperID) {
        this.auditOperID = auditOperID;
    }
    @Basic
    @Column(name = "AUDIT_STAT")
    public String getAuditStat() {
        return auditStat;
    }
    public void setAuditStat(String auditStat) {
        this.auditStat = auditStat;
    }
    @Basic
    @Column(name = "AUDIT_TS",length=200)
    @Temporal(TemporalType.TIMESTAMP)
    public Date getAuditTs() {
        return auditTs;
    }
    public void setAuditTs(Date auditTs) {
        this.auditTs = auditTs;
    }
    @Basic
    @Column(name = "AUDIT_RESON")
    public String getAuditReson() {
        return auditReson;
    }
    public void setAuditReson(String auditReson) {
        this.auditReson = auditReson;
    }
    @Basic
    @Column(name = "POLICY_TYPE")
    public String getPolicyTpye() {
        return policyTpye;
    }
    public void setPolicyTpye(String policyTpye) {
        this.policyTpye = policyTpye;
    }
    @Basic
    @Column(name = "LOCK_VERSION")
    public String getLockVersion() {
        return lockVersion;
    }
    public void setLockVersion(String lockVersion) {
        this.lockVersion = lockVersion;
    }
    
    
}
